const ProductModel = require('../../models/productModel');

const ProductService = {
    // 获取已发布的新闻数据列表(根据时间倒序排序获取数据:新->旧)
    getList: async () => {
        return ProductModel.find().sort({ editTime: -1 });
    },
};

module.exports = ProductService;
